package com.koron.order.maintain.mapper;

import com.koron.order.maintain.bean.entity.MaintainReadyPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (MaintainReady)表数据库访问层
 *
 * @author zhouj
 * @since 2021-09-14 14:12:48
 */
public interface MaintainReadyMapper {

    MaintainReadyPo queryById(String id);

    List<MaintainReadyPo> queryList(MaintainReadyPo maintainReady);

    int insert(MaintainReadyPo maintainReady);

    int update(MaintainReadyPo maintainReady);

    int deleteById(String id);

    int deleteByOrderId(String orderId);

    int insertBatch(@Param("list") List<MaintainReadyPo> maintainReadyPoList);

    int updateBatch(@Param("list") List<MaintainReadyPo> maintainReadyPoList);

    List<MaintainReadyPo> queryByOrderId(@Param("maintainId") String maintainId);

    int deleteByIds(@Param("ids") String ids);
}